package com.mzj.saas.commons.enums;

/**
 * 合同回调类型
 */
public enum ContractCallbackTypeEnum {

    /**
     * 发送签署
     */
	SEND_SIGNING("SEND_SIGNING","发送签署"),
    /**
     * 发送填参
     */
	SEND_FILLING("SEND_FILLING","发送填参"),
    /**
     * 完成参数
     */
	FILLED("FILLED","完成参数"),
    /**
     * 配置流程
     */
	CONFIG_FLOW("CONFIG_FLOW","配置流程"),
    /**
     * 个人签字
     */
	PERSONAL("PERSONAL","个人签字"),
    /**
     * 经办人签名
     */
	OPERATOR("OPERATOR","经办人签名"),
    /**
     * 法定代表人签字
     */
	LEGAL_PERSON("LEGAL_PERSON","法定代表人签字"),
    /**
     * 企业签章
     */
	SEAL("SEAL","企业签章"),
    /**
     * 审批并签署
     */
	AUDIT_SIGN("AUDIT_SIGN","审批并签署"),
    /**
     * 文件审批
     */
	AUDIT("AUDIT","文件审批"),
    /**
     * 撤回文件
     */
	RECALLED("RECALLED","撤回文件"),
    /**
     * 退回文件
     */
	REJECTED("REJECTED","退回文件"),
    /**
     * 文件过期
     */
	EXPIRED("EXPIRED","文件过期"),
    /**
     * 文件完成
     */
	COMPLETE("COMPLETE","文件完成"),
    /**
     * 发送作废
     */
	SEND_INVALID("SEND_INVALID","发送作废"),
    /**
     * 签署作废
     */
	INVALIDING("INVALIDING","签署作废"),
    /**
     * 作废完成
     */
	INVALIDED("INVALIDED","作废完成"),
    /**
     * 拒绝作废
     */
	INVALID_REJECTED("INVALID_REJECTED","拒绝作废"),
    /**
     * 签署失败
     */
	FAILED("FAILED","签署失败"),
    /**
     * 未知
     */
	UNKNOWN("UNKNOWN","未知");

    private String value;
    
    private String msg;

    ContractCallbackTypeEnum(String value,String msg) {
        this.value = value;
        this.msg = msg;
    }

    public String getValue() {
        return value;
    }
    
	public String getMsg() {
		return msg;
	}

	public static String operate(String value) {
        for(ContractCallbackTypeEnum s : values()) { 
            if(s.value.equals(value)) {
            	return s.msg;
            }
        }
        return UNKNOWN.msg;
    }
    
}
